package com.wq.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Queue;

@Slf4j
@RestController
@RequestMapping("/admin/wiki")
public class WikiController {
    @PostMapping("/list")
    public String list(){
        return "{\n" +
                "  \"success\": true,\n" +
                "  \"message\": null,\n" +
                "  \"errorCode\": null,\n" +
                "  \"data\": [\n" +
                "    {\n" +
                "      \"id\": 6,\n" +
                "      \"title\": \"Docker 教程\",\n" +
                "      \"cover\": \"http://116.62.199.48:9000/weblog/d814632efadc4e0c8a40753938a1a8d8.png\",\n" +
                "      \"summary\": \"从零学习 Docker 容器\",\n" +
                "      \"createTime\": \"2024-01-22 16:24:40\",\n" +
                "      \"isTop\": true,\n" +
                "      \"isPublish\": true,\n" +
                "      \"firstArticleId\": 19\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 7,\n" +
                "      \"title\": \"Vue 3.x 教程\",\n" +
                "      \"cover\": \"http://116.62.199.48:9000/weblog/aeda2bba892d4b2c80b8a5fbb3182957.png\",\n" +
                "      \"summary\": \"从零学习 Vue 3.x 前端框架\",\n" +
                "      \"createTime\": \"2024-01-22 16:54:07\",\n" +
                "      \"isTop\": true,\n" +
                "      \"isPublish\": true,\n" +
                "      \"firstArticleId\": 29\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 8,\n" +
                "      \"title\": \"IDEA 使用教程\",\n" +
                "      \"cover\": \"http://116.62.199.48:9000/weblog/fc9017ff885447e594baa37ac9c655a6.png\",\n" +
                "      \"summary\": \"从零学习 Java 开发工具\",\n" +
                "      \"createTime\": \"2024-01-28 16:09:37\",\n" +
                "      \"isTop\": false,\n" +
                "      \"isPublish\": true,\n" +
                "      \"firstArticleId\": 18\n" +
                "    }\n" +
                "  ],\n" +
                "  \"total\": 3,\n" +
                "  \"size\": 10,\n" +
                "  \"current\": 1,\n" +
                "  \"pages\": 1\n" +
                "}";
    }

}
